/*
 * MANSCDP.cpp
 *
 *  Created on: 2015年7月11日
 *      Author: chuanjiang.zh@qq.com
 */

#include "MANSCDP.h"
#include "TStringCast.h"


namespace gb
{

const char* MIME_APPLICATION = "Application";
const char* MIME_MANSCDP_SUBTYPE = "MANSCDP+xml";
const char* MIME_MANSCDP = "Application/MANSCDP+xml";
const char* MIME_SDP = "APPLICATION/SDP";

const char*  CONTROL = "Control";
const char*  QUERY = "Query";
const char*  NOTIFY = "Notify";
const char*  RESPONSE = "Response";

const char*  CmdType = "CmdType";
const char*  SN = "SN";

const char* ONLINE = "ONLINE";
const char* OFFLINE = "OFFLINE";


static size_t   s_sn = 1;

int makeSN()
{
    return s_sn ++;
}

std::string makeSNStr()
{
    return comn::StringCast::toString(s_sn ++);
}

void fillSN(Request& req)
{
    req.m_sn = s_sn ++;
}








} /* namespace gb */
